import { request } from '../service'

export function rolePage (data) {
  return request({
    url: '/seres-user/api/role/page',
    method: 'post',
    params: data
  })
}
export function roleCreate (data) {
  return request({
    url: '/seres-user/api/role/create',
    method: 'post',
    params: data
  })
}
export function roleUpdate (data) {
  return request({
    url: '/seres-user/api/role/update',
    method: 'post',
    params: data
  })
}

export function getDeptRole () {
  return request({
    url: '/seres-user/api/role/getDeptRole',
    method: 'get'
  })
}

export function settingRolePower (data) {
  return request({
    url: '/seres-user/api/role/settingRolePower',
    method: 'post',
    data: data
  })
}

export function getMenuAndAuthId (data) {
  return request({
    url: '/seres-user/api/role/getMenuAndAuthId',
    method: 'get',
    params: data
  })
}
export function deleteRole (data) {
  return request({
    url: '/seres-user/api/role/deleteRole',
    method: 'post',
    params: data
  })
}
